package cn.mickey.cloud.service;


import cn.mickey.cloud.entity.House;
import cn.mickey.cloud.entity.Page;

import java.util.Collection;
import java.util.List;

public interface HouseService {
    //全查询、分页
    List<House> findHouseAll();
    //分页全查询
    Page page(int page, int limit);

    //单个删除
    void delList(long id);

    //批量删除
    void delList(Collection<Long> ids);

    //单个添加
    void add(House house);

    //单个修改
    void update(House house);

    //获取
    House getOne(long id);
    //全查
    List<House> getAll();

}
